<template>
  <div id="app">
    <VirtualList :listData="data" :itemSize="100" />
  </div>
</template>

<script>
import VirtualList from "./components/VirtualList.vue";

const d = [];
for (let i = 0; i < 100000; i++) {
  d.push({ id: i + 1, value: i + 1 });
}
export default {
  name: "App",
  data() {
    return {
      data: d,
    };
  },
  components: {
    VirtualList,
  },
};
</script>

<style>
html {
  height: 100%;
}
body {
  height: 100%;
  margin: 0;
}
#app {
  height: 100%;
}
</style>
